Skip to content

docs: fix upload-to-stitch path so it works outside a repo checkout (#96) - #110

Open
Sahilkumar-r wants to merge 1 commit into
google-labs-code:mainfrom
Sahilkumar-r:fix/96-plugin-root-path
Open

Sahilkumar-r wants to merge 1 commit into
google-labs-code:mainfrom
Sahilkumar-r:fix/96-plugin-root-path

Conversation

@Sahilkumar-r

Copy link
Copy Markdown

Problem

#96: manage-design-system/SKILL.md (step "Upload DESIGN.md", Option A) tells the agent to run

python3 stitch-skills/plugins/stitch-design/skills/upload-to-stitch/scripts/upload_to_stitch.py

That path is only valid relative to a git clone of this repository. When the stitch-design plugin is installed through the marketplace, the script lives at ${CLAUDE_PLUGIN_ROOT}/skills/upload-to-stitch/scripts/upload_to_stitch.py instead, so the command fails from any project cwd.

Fix

Swapped the hard-coded repo-relative path for ${CLAUDE_PLUGIN_ROOT}/skills/upload-to-stitch/scripts/upload_to_stitch.py, exactly as the issue suggested. plugins/stitch-design/plugin.json confirms plugins/stitch-design/ is the directory ${CLAUDE_PLUGIN_ROOT} resolves to for this plugin, under which skills/upload-to-stitch/scripts/upload_to_stitch.py already exists — so the new path is correct both inside a repo checkout and in a real marketplace install.

Verification

Doc-only fix (a path string inside a markdown instruction block); there's no code to unit-test. .github/workflows/validate-skills.yml doesn't cover this file. Verified by inspecting plugin.json/the marketplace manifest to confirm the resolved path is correct, and that no other skill in the repo already relies on the old hard-coded path (only this one line referenced it).

Note: per CONTRIBUTING.md, this will need a signed Google CLA (cla.developers.google.com) from the account owner before it can merge — that'll be handled separately.

🤖 Generated with Claude Code

…oogle-labs-code#96)

manage-design-system told the agent to run
stitch-skills/plugins/stitch-design/skills/upload-to-stitch/scripts/upload_to_stitch.py,
a path that only resolves inside a git clone of this repo. When the
plugin is installed through the marketplace, the script instead lives
under ${CLAUDE_PLUGIN_ROOT}/skills/upload-to-stitch/scripts/, so the
command failed from any project cwd.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@google-cla

google-cla Bot commented Nov 21, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant